//
//  NavigationView.m
//  news
//
//  Created by 李松 on 2017/3/21.
//  Copyright © 2017年 benxiaohai. All rights reserved.
//

#import "NavigationView.h"

#define  kViewH 35
#define  kItemW 70
#define  kMargin 10


@interface NavigationView ()

@property (nonatomic, strong) NSMutableArray *btns;

@property (nonatomic, weak) UIButton *selectedItem;

@property (nonatomic, copy) itemClick itemClickBlock;


@end

@implementation NavigationView


#pragma mark - init
+ (instancetype)navigationViewWithItems:(NSArray<NSString *> *)items itemClick:(itemClick)itemClick{
    
    NavigationView *nav = [[NavigationView alloc] init];
    nav.btns = [NSMutableArray arrayWithCapacity:items.count];
    
    
    return  nav;
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
